<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		 <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    	 <title></title>
		<!--标准mui.css-->
		<link rel="stylesheet" href="../../static/mui/css/mui.min.css">
		<script src="../../static/mui/js/mui.js"></script>
	</head>
	<body>
		<header class="mui-bar mui-bar-nav" style="background-color:#dd524d;">
			<h1 id="title" class="mui-title" style="color: #fff;">接单</h1>
		</header>
		<div class="mui-content"></div>
	</body>
	<script type="text/javascript" src="../../static/lib/jquery-1.11.2.min.js"></script>
	<script type="text/javascript" src="../../static/app/js/kit.js"></script>
	<script type="text/javascript" src="../../static/app/js/api.js"></script>
	<script type="text/javascript">
		
		mui.plusReady(function(){
			window.addEventListener("getOrderIndexData",function(event){
				var shopid = event.detail.shopid;
				mui.init({
					subpages:[{
						url:'indexListSub.html', 
						id:'views/order/indexListSub.html',
						styles:{
							top: '45px',
							bottom: '0px',
							scrollIndicator:'none'
						},
						 extras:{
					       shopid:shopid 
					    }
					}]
				});
			});
			window.addEventListener("getAutoOrderIndexData",function(event){
				var shop = event.detail.shop;
				var shopid = shop.ID;
				mui.init({
					subpages:[{
						url:'indexListSub.html', 
						id:'views/order/indexListSub.html',
						styles:{
							top: '45px',
							bottom: '0px',
							scrollIndicator:'none'
						},
						 extras:{
					       shopid:shopid 
					    }
					}]
				});
				var orderManage = plus.webview.getWebviewById("order/manage.html");
				var myIndex = plus.webview.getWebviewById("my/index.html");
				mui.fire(orderManage,"getManageData",{shopid:shopid});
				mui.fire(myIndex,"getMyIndexData",{shop:shop});
			});
		});
	</script>

</html>
